Skip to content

Scheduled searches#165

Merged
SaaldjorMike merged 1 commit into
humio:masterfrom
fjerlov-cs:fjerlov/scheduled-search-2
Jun 28, 2024
Merged

Scheduled searches#165
SaaldjorMike merged 1 commit into
humio:masterfrom
fjerlov-cs:fjerlov/scheduled-search-2

Conversation

@fjerlov-cs

Copy link
Copy Markdown
Contributor

Add scheduled search

scheduled-search.yaml

name: scheduled-search
description: some-description-2
queryString: foo=bar bar=foo
queryStart: 24h
queryEnd: now
timeZone: UTC-02:00
schedule: 0 * * * *
backfillLimit: 0
enabled: true
actionNames:
- testing
labels:
- some-label-3
- some-label-4
queryOwnershipType: Organization
/Users/fjerlov/Library/Caches/JetBrains/GoLand2023.3/tmp/GoLand/___list scheduled-searches list DemoView
                 ID                |       NAME       |    DESCRIPTION     | QUERY START | QUERY END | TIMEZONE  | SCHEDULE  | BACKFILL LIMIT | ACTION NAMES |           LABELS           | ENABLED | RUN AS USER ID | QUERY OWNERSHIP TYPE  
+----------------------------------+------------------+--------------------+-------------+-----------+-----------+-----------+----------------+--------------+----------------------------+---------+----------------+----------------------+
  YXPdEBHFRe5Gbw7J8o7y59UtlQUp5O3q | scheduled-search | some-description-2 | 24h         | now       | UTC-02:00 | 0 * * * * |              0 | testing      | some-label-3, some-label-4 | true    |                | Organization          

/Users/fjerlov/Library/Caches/JetBrains/GoLand2023.3/tmp/GoLand/___show scheduled-searches show DemoView scheduled-search
                          ID | YXPdEBHFRe5Gbw7J8o7y59UtlQUp5O3q  
                        Name | scheduled-search                  
                 Description | some-description-2                
                Query String | foo=bar bar=foo                   
                 Query Start | 24h                               
                   Query End | now                               
                    TimeZone | UTC-02:00                         
                    Schedule | 0 * * * *                         
              Backfill Limit | 0                                 
                     Enabled | true                              
                     Actions | testing                           
              Run As User ID |                                   
         LastScheduledSearch | 0                                 
  TimeOfNextPlannedExecution | 1719496800000                     
                      Labels | some-label-3, some-label-4        
          QueryOwnershipType | Organization    

Tested func (a *ScheduledSearches) Update(viewName string, updateScheduledSearch *ScheduledSearch) (*ScheduledSearch, error) { manually.

@fjerlov-cs fjerlov-cs requested a review from a team as a code owner June 27, 2024 13:15
Comment thread api/internal/humiographql/user.go
Comment thread api/scheduled-search.go Outdated
Comment thread api/scheduled-search.go Outdated
Comment thread cmd/humioctl/scheduled_searches_install.go Outdated
Comment thread cmd/humioctl/scheduled_searches_install.go Outdated
Comment thread cmd/humioctl/scheduled_searches_remove.go Outdated
@fjerlov-cs fjerlov-cs changed the title Scheduled search Scheduled searches Jun 27, 2024

@jespermbyskov jespermbyskov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread api/internal/humiographql/scheduled-search.go Outdated
Comment thread cmd/humioctl/scheduled_searches_list.go Outdated
Comment thread cmd/humioctl/scheduled_searches_show.go Outdated
Comment thread cmd/humioctl/scheduled_searches_show.go Outdated
Comment thread cmd/humioctl/scheduled_searches_show.go Outdated
Comment thread cmd/humioctl/scheduled_searches_show.go Outdated
@SaaldjorMike SaaldjorMike merged commit 517aa79 into humio:master Jun 28, 2024
@fjerlov-cs fjerlov-cs deleted the fjerlov/scheduled-search-2 branch August 1, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants